{% extends "toast/base.template.html" %}
{% load toast_filters %}


{% block breadcrumbs %}
	<li><a href="/toast/member/">Members</a> <span class="divider">/</span></li>
	<li><a href="/toast/member/view/{{ member.id }}">{{ member.first_name_first }}</a> <span class="divider">/</span></li>
	<li class="active">Edit</li>
{% endblock %}


{% block sidecontent %}
	
{% endblock %}


{% block content %}
	<form method="POST">
	{% csrf_token %}
		<h6>{{ form.first_name.label }}</h6>
		<input type="text" name="first_name" value="{{ form.first_name.value }}" data-content="{{ form.first_name.help_text }}" />
		<p class="text-error">{{ form.first_name.errors.as_text }}</p>

		<h6>{{ form.last_name.label }}</h6>
		<input type="text" name="last_name" value="{{ form.last_name.value }}" data-content="{{ form.last_name.help_text }}" />
		<p class="text-error">{{ form.last_name.errors.as_text }}</p>

		<h6>{{ form.email.label }}</h6>
		<input type="text" name="email" value="{{ form.email.value }}" data-content="{{ form.email.help_text }}" />
		<p class="text-error">{{ form.email.errors.as_text }}</p>


		<h6>{{ form.phone.label }}</h6>
		<input type="text" name="phone" value="{{ form.phone.value }}" data-content="{{ form.phone.help_text }}" />
		<p class="text-error">{{ form.phone.errors.as_text }}</p>

		<input class="btn btn-primary" type="submit" name="member_add" value="Save Changes" />
	</form>
{% endblock %}